package dousy31;

import dousy31.Course;
import dousy31.Student;
import dousy31.Teacher;

class Course {
 int xuhao;
 String classname;
 String place;
 String time;
 String teacher;


}
class humen {
	int id;
	String name;
	String xingbie;
	Course course;
	String passw;
}

class Teacher extends humen{

 
}

class Student extends humen{
 String major;
 public void setid(String course){

 }
 

}

public class dousy31{
 public static void main (String args[]){
   Teacher zhangsan = new Teacher();
   zhangsan.id =123456;
   zhangsan.name ="zhangsan";
   zhangsan.xingbie="nan";
 
   zhangsan.passw="123456";
   Student liming = new Student();
   liming.id =123456;
   liming.name ="zhangsan";
   liming.xingbie="nan";
   liming.major="computer";
   liming.passw="111111";
   liming.setid("math");
   Course shuxue =new Course();
   shuxue.xuhao =233333;
   shuxue.classname ="math";
   shuxue.place ="0921";
   shuxue.time ="9.22";
   shuxue.teacher ="csy";
  
   System.out.println("姓名:"+liming.name);
   System.out.println("编号:"+shuxue.xuhao);
   System.out.println("课程:"+shuxue.classname);
   System.out.println("上课地点"+shuxue.place);
   System.out.println("时间"+shuxue.time);
   System.out.println("授课教师"+shuxue.teacher);
   
   
  }
 }